<template>
  <div>
    <div style="">
      <el-button :disabled="btnPrevDisabled" type="primary" @click="prev">
        上一步
      </el-button>
      <el-button :disabled="btnNextDisabled" type="primary" @click="publish">
        发布课程
      </el-button>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      btnPrevDisabled: false,
      btnNextDisabled: false
    }
  },
  methods: {
    prev() {
      this.btnPrevDisabled = true
      this.$parent.active = 1
    },
    publish() {
      this.btnNextDisabled = true
      this.$parent.active = 3
    }
  }
}
</script>
